// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_prov;

import android.content.*;
import android.database.Cursor;
import android.database.sqlite.*;
import android.net.Uri;
import android.text.TextUtils;
import java.util.List;

// Referenced classes of package com.nnee.p_pr.provider:
//            ac, q, p, m, 
//            z, a, k, ae, 
//            i, ab, w, u, 
//            v, af, e, r

public class cls_ContentProviderEx extends cls_ContentProvider
{

    public ContentProviderEx()
    {
    }

    private static String a(Uri uri, String s1)
    {
        if(!TextUtils.isEmpty(s1))
            s1 = (new StringBuilder()).append(s1).append(" AND").toString();
        String s2 = (new StringBuilder()).append("_id = ").append((String)uri.getPathSegments().get(1)).toString();
        if(s1 != null)
            s2 = (new StringBuilder()).append(s1).append(s2).toString();
        return s2;
    }

    public int delete(Uri uri, String s1, String as[])
    {
        SQLiteDatabase sqlitedatabase = I.getWritableDatabase();
        J.match(uri);
        JVM INSTR tableswitch 1 30: default 152
    //                   1 185
    //                   2 179
    //                   3 222
    //                   4 216
    //                   5 242
    //                   6 236
    //                   7 262
    //                   8 256
    //                   9 282
    //                   10 276
    //                   11 302
    //                   12 296
    //                   13 322
    //                   14 316
    //                   15 342
    //                   16 336
    //                   17 362
    //                   18 356
    //                   19 382
    //                   20 376
    //                   21 402
    //                   22 396
    //                   23 422
    //                   24 416
    //                   25 442
    //                   26 436
    //                   27 462
    //                   28 456
    //                   29 482
    //                   30 476;
           goto _L1 _L2 _L3 _L4 _L5 _L6 _L7 _L8 _L9 _L10 _L11 _L12 _L13 _L14 _L15 _L16 _L17 _L18 _L19 _L20 _L21 _L22 _L23 _L24 _L25 _L26 _L27 _L28 _L29 _L30 _L31
_L1:
        throw new UnsupportedOperationException((new StringBuilder()).append("Cannot delete that URI: ").append(uri).toString());
_L3:
        s1 = a(uri, s1);
_L2:
        int i1 = sqlitedatabase.delete("account", s1, as);
_L33:
        if(i1 > 0)
            getContext().getContentResolver().notifyChange(uri, null);
        return i1;
_L5:
        s1 = a(uri, s1);
_L4:
        i1 = sqlitedatabase.delete("favorite", s1, as);
        continue; /* Loop/switch isn't completed */
_L7:
        s1 = a(uri, s1);
_L6:
        i1 = sqlitedatabase.delete("subscribe", s1, as);
        continue; /* Loop/switch isn't completed */
_L9:
        s1 = a(uri, s1);
_L8:
        i1 = sqlitedatabase.delete("article_status", s1, as);
        continue; /* Loop/switch isn't completed */
_L11:
        s1 = a(uri, s1);
_L10:
        i1 = sqlitedatabase.delete("cachetabable", s1, as);
        continue; /* Loop/switch isn't completed */
_L13:
        s1 = a(uri, s1);
_L12:
        i1 = sqlitedatabase.delete("search", s1, as);
        continue; /* Loop/switch isn't completed */
_L15:
        s1 = a(uri, s1);
_L14:
        i1 = sqlitedatabase.delete("config", s1, as);
        continue; /* Loop/switch isn't completed */
_L17:
        s1 = a(uri, s1);
_L16:
        i1 = sqlitedatabase.delete("conver", s1, as);
        continue; /* Loop/switch isn't completed */
_L19:
        s1 = a(uri, s1);
_L18:
        i1 = sqlitedatabase.delete("temp_search", s1, as);
        continue; /* Loop/switch isn't completed */
_L21:
        s1 = a(uri, s1);
_L20:
        i1 = sqlitedatabase.delete("temp_article", s1, as);
        continue; /* Loop/switch isn't completed */
_L23:
        s1 = a(uri, s1);
_L22:
        i1 = sqlitedatabase.delete("temp_comment", s1, as);
        continue; /* Loop/switch isn't completed */
_L25:
        s1 = a(uri, s1);
_L24:
        i1 = sqlitedatabase.delete("temp_subcribe", s1, as);
        continue; /* Loop/switch isn't completed */
_L27:
        s1 = a(uri, s1);
_L26:
        i1 = sqlitedatabase.delete("weibo_account", s1, as);
        continue; /* Loop/switch isn't completed */
_L29:
        s1 = a(uri, s1);
_L28:
        i1 = sqlitedatabase.delete("offline", s1, as);
        continue; /* Loop/switch isn't completed */
_L31:
        s1 = a(uri, s1);
_L30:
        i1 = sqlitedatabase.delete("fonts", s1, as);
        if(true) goto _L33; else goto _L32
_L32:
    }

    public String getType(Uri uri)
    {
        return null;
    }

    public Uri insert(Uri uri, ContentValues contentvalues)
    {
        Object obj;
        SQLiteDatabase sqlitedatabase;
        obj = null;
        sqlitedatabase = I.getWritableDatabase();
        J.match(uri);
        JVM INSTR tableswitch 1 29: default 148
    //                   1 175
    //                   2 148
    //                   3 222
    //                   4 148
    //                   5 241
    //                   6 148
    //                   7 260
    //                   8 148
    //                   9 279
    //                   10 148
    //                   11 321
    //                   12 148
    //                   13 340
    //                   14 148
    //                   15 359
    //                   16 148
    //                   17 378
    //                   18 148
    //                   19 397
    //                   20 148
    //                   21 416
    //                   22 148
    //                   23 435
    //                   24 148
    //                   25 454
    //                   26 148
    //                   27 473
    //                   28 148
    //                   29 492;
           goto _L1 _L2 _L1 _L3 _L1 _L4 _L1 _L5 _L1 _L6 _L1 _L7 _L1 _L8 _L1 _L9 _L1 _L10 _L1 _L11 _L1 _L12 _L1 _L13 _L1 _L14 _L1 _L15 _L1 _L16
_L1:
        throw new UnsupportedOperationException((new StringBuilder()).append("Cannot insert that URI: ").append(uri).toString());
_L2:
        long l1;
        Uri uri1;
        l1 = sqlitedatabase.insert("account", ((String) (obj)), contentvalues);
        uri1 = q.j;
_L18:
        if(l1 > 0L)
        {
            getContext().getContentResolver().notifyChange(uri, ((android.database.ContentObserver) (obj)));
            obj = ContentUris.withAppendedId(uri1, l1);
        }
        return ((Uri) (obj));
_L3:
        l1 = sqlitedatabase.insert("favorite", ((String) (obj)), contentvalues);
        uri1 = p.j;
        continue; /* Loop/switch isn't completed */
_L4:
        l1 = sqlitedatabase.insert("subscribe", ((String) (obj)), contentvalues);
        uri1 = m.k;
        continue; /* Loop/switch isn't completed */
_L5:
        l1 = sqlitedatabase.insert("article_status", ((String) (obj)), contentvalues);
        uri1 = z.g;
        continue; /* Loop/switch isn't completed */
_L6:
        if(!contentvalues.containsKey("timestamp"))
            contentvalues.put("timestamp", Long.valueOf(System.currentTimeMillis()));
        l1 = sqlitedatabase.insert("cachetabable", ((String) (obj)), contentvalues);
        uri1 = a.b;
        continue; /* Loop/switch isn't completed */
_L7:
        l1 = sqlitedatabase.insert("search", ((String) (obj)), contentvalues);
        uri1 = k.b;
        continue; /* Loop/switch isn't completed */
_L8:
        l1 = sqlitedatabase.insert("config", ((String) (obj)), contentvalues);
        uri1 = ae.f;
        continue; /* Loop/switch isn't completed */
_L9:
        l1 = sqlitedatabase.insert("conver", ((String) (obj)), contentvalues);
        uri1 = i.k;
        continue; /* Loop/switch isn't completed */
_L10:
        l1 = sqlitedatabase.insert("temp_search", ((String) (obj)), contentvalues);
        uri1 = ab.b;
        continue; /* Loop/switch isn't completed */
_L11:
        l1 = sqlitedatabase.insert("temp_article", ((String) (obj)), contentvalues);
        uri1 = w.k;
        continue; /* Loop/switch isn't completed */
_L12:
        l1 = sqlitedatabase.insert("temp_comment", ((String) (obj)), contentvalues);
        uri1 = u.j;
        continue; /* Loop/switch isn't completed */
_L13:
        l1 = sqlitedatabase.insert("temp_subcribe", ((String) (obj)), contentvalues);
        uri1 = v.l;
        continue; /* Loop/switch isn't completed */
_L14:
        l1 = sqlitedatabase.insert("weibo_account", ((String) (obj)), contentvalues);
        uri1 = af.k;
        continue; /* Loop/switch isn't completed */
_L15:
        l1 = sqlitedatabase.insert("offline", ((String) (obj)), contentvalues);
        uri1 = e.b;
        continue; /* Loop/switch isn't completed */
_L16:
        l1 = sqlitedatabase.insert("fonts", ((String) (obj)), contentvalues);
        uri1 = r.i;
        if(true) goto _L18; else goto _L17
_L17:
    }

    public boolean onCreate()
    {
        I = ac.a(getContext());
        I.getWritableDatabase();
_L2:
        return true;
        SQLiteException sqliteexception;
        sqliteexception;
        sqliteexception.printStackTrace();
        if(I != null)
        {
            I.close();
            I = null;
        }
        if(true) goto _L2; else goto _L1
_L1:
    }

    public Cursor query(Uri uri, String as[], String s1, String as1[], String s2)
    {
        SQLiteQueryBuilder sqlitequerybuilder = new SQLiteQueryBuilder();
        J.match(uri);
        JVM INSTR tableswitch 0 30: default 156
    //                   0 184
    //                   1 239
    //                   2 233
    //                   3 261
    //                   4 255
    //                   5 283
    //                   6 277
    //                   7 305
    //                   8 299
    //                   9 327
    //                   10 321
    //                   11 349
    //                   12 343
    //                   13 371
    //                   14 365
    //                   15 393
    //                   16 387
    //                   17 415
    //                   18 409
    //                   19 437
    //                   20 431
    //                   21 459
    //                   22 453
    //                   23 481
    //                   24 475
    //                   25 503
    //                   26 497
    //                   27 525
    //                   28 519
    //                   29 547
    //                   30 541;
           goto _L1 _L2 _L3 _L4 _L5 _L6 _L7 _L8 _L9 _L10 _L11 _L12 _L13 _L14 _L15 _L16 _L17 _L18 _L19 _L20 _L21 _L22 _L23 _L24 _L25 _L26 _L27 _L28 _L29 _L30 _L31 _L32
_L31:
        break MISSING_BLOCK_LABEL_547;
_L1:
        throw new UnsupportedOperationException((new StringBuilder()).append("Cannot query that URI: ").append(uri).toString());
_L2:
        boolean flag;
        String s3;
        flag = true;
        s3 = s1;
_L33:
        SQLiteDatabase sqlitedatabase = I.getWritableDatabase();
        Cursor cursor;
        if(flag)
            cursor = sqlitedatabase.rawQuery(s3, as1);
        else
            cursor = sqlitequerybuilder.query(sqlitedatabase, as, s3, as1, null, null, s2);
        cursor.setNotificationUri(getContext().getContentResolver(), uri);
        return cursor;
_L4:
        s1 = a(uri, s1);
_L3:
        sqlitequerybuilder.setTables("account");
        flag = false;
        s3 = s1;
          goto _L33
_L6:
        s1 = a(uri, s1);
_L5:
        sqlitequerybuilder.setTables("favorite");
        flag = false;
        s3 = s1;
          goto _L33
_L8:
        s1 = a(uri, s1);
_L7:
        sqlitequerybuilder.setTables("subscribe");
        flag = false;
        s3 = s1;
          goto _L33
_L10:
        s1 = a(uri, s1);
_L9:
        sqlitequerybuilder.setTables("article_status");
        flag = false;
        s3 = s1;
          goto _L33
_L12:
        s1 = a(uri, s1);
_L11:
        sqlitequerybuilder.setTables("cachetabable");
        flag = false;
        s3 = s1;
          goto _L33
_L14:
        s1 = a(uri, s1);
_L13:
        sqlitequerybuilder.setTables("search");
        flag = false;
        s3 = s1;
          goto _L33
_L16:
        s1 = a(uri, s1);
_L15:
        sqlitequerybuilder.setTables("config");
        flag = false;
        s3 = s1;
          goto _L33
_L18:
        s1 = a(uri, s1);
_L17:
        sqlitequerybuilder.setTables("conver");
        flag = false;
        s3 = s1;
          goto _L33
_L20:
        s1 = a(uri, s1);
_L19:
        sqlitequerybuilder.setTables("temp_search");
        flag = false;
        s3 = s1;
          goto _L33
_L22:
        s1 = a(uri, s1);
_L21:
        sqlitequerybuilder.setTables("temp_article");
        flag = false;
        s3 = s1;
          goto _L33
_L24:
        s1 = a(uri, s1);
_L23:
        sqlitequerybuilder.setTables("temp_comment");
        flag = false;
        s3 = s1;
          goto _L33
_L26:
        s1 = a(uri, s1);
_L25:
        sqlitequerybuilder.setTables("temp_subcribe");
        flag = false;
        s3 = s1;
          goto _L33
_L28:
        s1 = a(uri, s1);
_L27:
        sqlitequerybuilder.setTables("weibo_account");
        flag = false;
        s3 = s1;
          goto _L33
_L30:
        s1 = a(uri, s1);
_L29:
        sqlitequerybuilder.setTables("offline");
        flag = false;
        s3 = s1;
          goto _L33
_L32:
        s1 = a(uri, s1);
        sqlitequerybuilder.setTables("fonts");
        flag = false;
        s3 = s1;
          goto _L33
    }

    public int update(Uri uri, ContentValues contentvalues, String s1, String as[])
    {
        SQLiteDatabase sqlitedatabase = I.getWritableDatabase();
        J.match(uri);
        JVM INSTR tableswitch 1 30: default 152
    //                   1 186
    //                   2 180
    //                   3 206
    //                   4 200
    //                   5 227
    //                   6 221
    //                   7 248
    //                   8 242
    //                   9 269
    //                   10 263
    //                   11 313
    //                   12 307
    //                   13 334
    //                   14 328
    //                   15 355
    //                   16 349
    //                   17 376
    //                   18 370
    //                   19 397
    //                   20 391
    //                   21 418
    //                   22 412
    //                   23 439
    //                   24 433
    //                   25 460
    //                   26 454
    //                   27 481
    //                   28 475
    //                   29 502
    //                   30 496;
           goto _L1 _L2 _L3 _L4 _L5 _L6 _L7 _L8 _L9 _L10 _L11 _L12 _L13 _L14 _L15 _L16 _L17 _L18 _L19 _L20 _L21 _L22 _L23 _L24 _L25 _L26 _L27 _L28 _L29 _L30 _L31
_L1:
        throw new UnsupportedOperationException((new StringBuilder()).append("Cannot update that URI: ").append(uri).toString());
_L3:
        s1 = a(uri, s1);
_L2:
        sqlitedatabase.update("account", contentvalues, s1, as);
_L33:
        return 0;
_L5:
        s1 = a(uri, s1);
_L4:
        sqlitedatabase.update("favorite", contentvalues, s1, as);
        continue; /* Loop/switch isn't completed */
_L7:
        s1 = a(uri, s1);
_L6:
        sqlitedatabase.update("subscribe", contentvalues, s1, as);
        continue; /* Loop/switch isn't completed */
_L9:
        s1 = a(uri, s1);
_L8:
        sqlitedatabase.update("article_status", contentvalues, s1, as);
        continue; /* Loop/switch isn't completed */
_L11:
        s1 = a(uri, s1);
_L10:
        if(!contentvalues.containsKey("timestamp"))
            contentvalues.put("timestamp", Long.valueOf(System.currentTimeMillis()));
        sqlitedatabase.update("cachetabable", contentvalues, s1, as);
        continue; /* Loop/switch isn't completed */
_L13:
        s1 = a(uri, s1);
_L12:
        sqlitedatabase.update("search", contentvalues, s1, as);
        continue; /* Loop/switch isn't completed */
_L15:
        s1 = a(uri, s1);
_L14:
        sqlitedatabase.update("config", contentvalues, s1, as);
        continue; /* Loop/switch isn't completed */
_L17:
        s1 = a(uri, s1);
_L16:
        sqlitedatabase.update("conver", contentvalues, s1, as);
        continue; /* Loop/switch isn't completed */
_L19:
        s1 = a(uri, s1);
_L18:
        sqlitedatabase.update("temp_search", contentvalues, s1, as);
        continue; /* Loop/switch isn't completed */
_L21:
        s1 = a(uri, s1);
_L20:
        sqlitedatabase.update("temp_article", contentvalues, s1, as);
        continue; /* Loop/switch isn't completed */
_L23:
        s1 = a(uri, s1);
_L22:
        sqlitedatabase.update("temp_comment", contentvalues, s1, as);
        continue; /* Loop/switch isn't completed */
_L25:
        s1 = a(uri, s1);
_L24:
        sqlitedatabase.update("temp_subcribe", contentvalues, s1, as);
        continue; /* Loop/switch isn't completed */
_L27:
        s1 = a(uri, s1);
_L26:
        sqlitedatabase.update("weibo_account", contentvalues, s1, as);
        continue; /* Loop/switch isn't completed */
_L29:
        s1 = a(uri, s1);
_L28:
        sqlitedatabase.update("offline", contentvalues, s1, as);
        continue; /* Loop/switch isn't completed */
_L31:
        s1 = a(uri, s1);
_L30:
        sqlitedatabase.update("fonts", contentvalues, s1, as);
        if(true) goto _L33; else goto _L32
_L32:
    }

    private static final int A = 23;
    private static final int B = 24;
    private static final int C = 25;
    private static final int D = 26;
    private static final int E = 27;
    private static final int F = 28;
    private static final int G = 29;
    private static final int H = 30;
    private static final UriMatcher J;
    static final String a = "ContentProviderEx";
    public static final int b = 10;
    public static final String c = "pris.db";
    private static final int d = 0;
    private static final int e = 1;
    private static final int f = 2;
    private static final int g = 3;
    private static final int h = 4;
    private static final int i = 5;
    private static final int j = 6;
    private static final int k = 7;
    private static final int l = 8;
    private static final int m = 9;
    private static final int n = 10;
    private static final int o = 11;
    private static final int p = 12;
    private static final int q = 13;
    private static final int r = 14;
    private static final int s = 15;
    private static final int t = 16;
    private static final int u = 17;
    private static final int v = 18;
    private static final int w = 19;
    private static final int x = 20;
    private static final int y = 21;
    private static final int z = 22;
    private cls_ac I;

    static 
    {
        J = new UriMatcher(-1);
        J.addURI("p_pr", "rawquery", 0);
        J.addURI("p_pr", "account", 1);
        J.addURI("p_pr", "account/#", 2);
        J.addURI("p_pr", "favorite", 3);
        J.addURI("p_pr", "favorite/#", 4);
        J.addURI("p_pr", "subscribe", 5);
        J.addURI("p_pr", "subscribe/#", 6);
        J.addURI("p_pr", "article_status", 7);
        J.addURI("p_pr", "article_status/#", 8);
        J.addURI("p_pr", "cachetabable", 9);
        J.addURI("p_pr", "cachetabable/#", 10);
        J.addURI("p_pr", "config", 13);
        J.addURI("p_pr", "config/#", 14);
        J.addURI("p_pr", "search", 11);
        J.addURI("p_pr", "search/#", 12);
        J.addURI("p_pr", "conver", 15);
        J.addURI("p_pr", "conver/#", 16);
        J.addURI("p_pr", "temp_search", 17);
        J.addURI("p_pr", "temp_search/#", 18);
        J.addURI("p_pr", "temp_article", 19);
        J.addURI("p_pr", "temp_article/#", 20);
        J.addURI("p_pr", "temp_comment", 21);
        J.addURI("p_pr", "temp_comment/#", 22);
        J.addURI("p_pr", "temp_subcribe", 23);
        J.addURI("p_pr", "temp_subcribe/#", 24);
        J.addURI("p_pr", "weibo_account", 25);
        J.addURI("p_pr", "weibo_account/#", 26);
        J.addURI("p_pr", "offline", 27);
        J.addURI("p_pr", "offline/#", 28);
        J.addURI("p_pr", "fonts", 29);
        J.addURI("p_pr", "fonts/#", 30);
    }
}
